package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.PresaleCouponExpirydate;
import com.ecoolex.hotel.saas.entity.PresaleCouponExpirydateExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface PresaleCouponExpirydateMapper {
    long countByExample(PresaleCouponExpirydateExample example);

    int deleteByExample(PresaleCouponExpirydateExample example);

    int deleteByPrimaryKey(Integer preCouponId);

    int insert(PresaleCouponExpirydate record);

    int insertSelective(@Param("record") PresaleCouponExpirydate record, @Param("selective") PresaleCouponExpirydate.Column ... selective);

    PresaleCouponExpirydate selectOneByExample(PresaleCouponExpirydateExample example);

    List<PresaleCouponExpirydate> selectByExample(PresaleCouponExpirydateExample example);

    PresaleCouponExpirydate selectByPrimaryKey(Integer preCouponId);

    PresaleCouponExpirydate selectByPrimaryKeyWithLogicalDelete(@Param("preCouponId") Integer preCouponId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") PresaleCouponExpirydate record, @Param("example") PresaleCouponExpirydateExample example, @Param("selective") PresaleCouponExpirydate.Column ... selective);

    int updateByExample(@Param("record") PresaleCouponExpirydate record, @Param("example") PresaleCouponExpirydateExample example);

    int updateByPrimaryKeySelective(@Param("record") PresaleCouponExpirydate record, @Param("selective") PresaleCouponExpirydate.Column ... selective);

    int updateByPrimaryKey(PresaleCouponExpirydate record);

    int batchInsert(@Param("list") List<PresaleCouponExpirydate> list);

    int batchInsertSelective(@Param("list") List<PresaleCouponExpirydate> list, @Param("selective") PresaleCouponExpirydate.Column ... selective);

    int logicalDeleteByExample(@Param("example") PresaleCouponExpirydateExample example);

    int logicalDeleteByPrimaryKey(Integer preCouponId);
}